//
//  RoomInfoLogic.h
//  QRMaster
//
//  Created by myApple on 15/12/22.
//  Copyright (c) 2015年 myApple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FloorsModel.h"

typedef void(^arrBlock)(NSMutableArray * arr);

typedef void(^resultFloorName)(NSString * floorName);
@interface FloorsInfoLogic : NSObject

/**
 *  插入楼层信息
 *
 *  @param model       楼层模型
 *  @param floorId     楼层ID
 *  @param buildingId  楼栋ID
 *  @param communityId 集群ID
 */
-(void)insertFloorInfo:(FloorsModel *)model
       withCommunityId:(NSString *)communityId
            buildingId:(NSString *)buildingId;

/**
 *  查询楼层信息
 *
 *  @param buildingId  楼栋ID
 *
 *  @param block       集群用于接收查询到的数组
 */
-(void)queryFloorsInfo:(NSString *)buildingId
                 block:(arrBlock)arrBlock;

/**
 *  根据集群id删除该集群下楼层信息
 *
 *  @param communityId 集群ID
 *
 */
-(void)deleteFloorsInfoWithCommunityId:(NSString *)communityId;

/**
 *  查询楼层名
 *
 *  @param floorId    楼层ID
 *
 *  @param floorName  楼层名
 */
-(void)queryfloorName:(NSString *)floorId block:(resultFloorName)floorName;

@end
